<?php

// change the following paths if necessary
$yii = dirname(__FILE__) . '/lib/yii/framework/yii.php';
$config = dirname(__FILE__) . '/protected/config/main.php';

defined('SYS_ENV') or define('SYS_ENV', 'prod');
// remove the following lines when in production mode
defined('YII_DEBUG') or define('YII_DEBUG', false);
//define('YII_DEBUG',false);
// specify how many levels of call stack should be shown in each log message
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);
//define('YII_TRACE_LEVEL',0);

//defined('YII_ENABLE_EXCEPTION_HANDLER') or define('YII_ENABLE_EXCEPTION_HANDLER',false);
defined('YII_ENABLE_ERROR_HANDLER') or define('YII_ENABLE_ERROR_HANDLER', false);
require_once($yii);

$app =Yii::createWebApplication($config);
Yii::setPathOfAlias('data', $app->getBasePath().'/data');
$app->run();
?>